//---------------------------------------------------------------------------

#ifndef zetascanH
#define zetascanH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Sysutils.hpp>
#include <xmldoc.hpp>
#include <ADODB.hpp>


//---------------------------------------------------------------------------
class ZetaScan : public TThread
{
  typedef struct tagTHREADNAME_INFO
  {
    DWORD dwType;     // must be 0x1000
    LPCSTR szName;    // pointer to name (in user addr space)
    DWORD dwThreadID; // thread ID (-1=caller thread)
    DWORD dwFlags;    // reserved for future use, must be zero
  } THREADNAME_INFO;
private:
  void SetName();
  TFileName   FileMask;
  TFileName   LookingDir;
  TFileName   FoundFile;
  int   SizeFile;
  TDateTime DateTimeFile;
  TStrings  *sFoundFile;
  TEdit  *TextCount;
  TXMLDocument *xmlfile;
  TADOConnection *ConnectionArs;
  TADOQuery *ADOQueryArs;
  unsigned int CountFile;
protected:
    void __fastcall Execute();
    void __fastcall FindFile(AnsiString LookingDir);
public:
    __fastcall ZetaScan(bool CreateSuspended);
    AnsiString AppDir;
    
    __fastcall ZetaScan(const AnsiString Filter,TStrings *FoundFiles,TEdit *,TXMLDocument *);
    void __fastcall OnTerminateZeta();
    void __fastcall AddFindFiles();

};
//---------------------------------------------------------------------------
#endif
